package com.service.sso.sdk.mapper;

import com.service.sso.sdk.dto.UserDto;
import com.service.sso.sdk.model.UserModel;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SsoUserMapper {
    @Autowired
    private ModelMapper mapper;

    public UserModel dtoToModel(UserDto userDto) {
        return mapper.map(userDto, UserModel.class);
    }

}
